package com.streamer.app.bean

import com.google.gson.annotations.SerializedName

data class ProductDateBean(
    val productCourseRelations: List<ProductCourseRelation>,
    val productGalleries: List<ProductGallery>,
    val products: Products
)

data class ProductCourseRelation(
    @SerializedName("coursesChapters")
    val coursesChapters: List<CoursesChapter>,
    val courseId: String,
    val coverImage: String,
    val coverVideo: String,
    val description: String?,
    val sortOrder: Int,
    val synopsi: String,
    val title: String
)

data class ProductGallery(
    val createBy: Int,
    val createDept: Int,
    val createTime: String,
    val delFlag: String,
    val galleryId: String,
    val imageUrl: String,
    val isMain: Int,
    val params: Any,
    val productId: String,
    val sortOrder: Int,
    val tenantId: String,
    val thumbnailUrl: String,
    val updateBy: Int,
    val updateTime: String
)

data class Products(
    val coverImage: String,
    val createBy: Int,
    val createDept: Int,
    val createTime: String,
    val delFlag: String,
    val description: String?,
    val externalLink: String,
    val linkBehavior: Int,
    val originalPrice: Int,
    val params: Any,
    val price: Int,
    val productId: String,
    val productNum: String,
    val productType: Int,
    val quota: Int,
    val salesVolume: Int,
    val sellingPoints: String,
    val signAddr: String,
    val signOpen: Boolean,
    val status: Int,
    val stockQuantity: Int,
    val tenantId: String,
    val title: String,
    val updateBy: Int,
    val updateTime: String,
    val validUntil: Int,
    val virtualSales: Int
)

data class CoursesChapter(
    val chapterId: String,
    val coursesId: Int,
    val coursesKnobbles: List<CoursesKnobble>,
    val isFree: Int,
    val sortOrder: Int,
    val title: String
)

data class CoursesKnobble(
    val chaptersId: Int,
    val coursesContents: List<CoursesContent>,
    val coverImage: String,
    val knobbleId: String,
    val sortOrder: Int,
    val title: String,
    val type: Int
)

data class CoursesContent(
    val contentId: String,
    val cotentType: Int,
    val coverImage: String,
    val fileTime: Int,
    val fileUrl: String,
    val knobbleId: String,
    val title: String
)

